package cn.softcits.thread.abc;

/**
 * @author Rocket
 * @version 10.0.1
 * @date 2021-07-04 10:03 PM
 */
public class PrintABC {

    public static void main(String[] args) {
        PrintLetter pl = new PrintLetter();
        new Thread(new Runnable() {
            @Override
            public void run() {
                while(true)
                    pl.printA();
            }
        }).start();

        new Thread(new Runnable() {
            @Override
            public void run() {
                while(true)
                    pl.printB();
            }
        }).start();

        new Thread(new Runnable() {
            @Override
            public void run() {
                while(true)
                    pl.printC();
            }
        }).start();
    }
}
